--- ./lib/plugins/facebook/assistant.py.orig	2013-05-27 00:29:54.000000000 +0000
+++ ./lib/plugins/facebook/assistant.py	2014-07-14 18:25:27.000000000 +0000
@@ -7,6 +7,7 @@
 import re
 import json
 import urllib
+import sys
 
 from gi.repository import Gtk, Gdk
 
@@ -15,6 +16,9 @@
 from ...constants import SHARED_DATA_FILE
 from ...utils.urlgetautoproxy import urlget_with_autoproxy
 
+_encoding = sys.getfilesystemencoding()
+if _encoding is None:
+    _encoding = 'utf-8'
 
 class FacebookAuthAssistant(Gtk.Assistant):
 
@@ -37,7 +41,7 @@
 
         # page 1
         page1 = gui.get_object('label1')
-        page1.set_text(page1.get_text().decode('utf-8') % _('Facebook'))
+        page1.set_text(page1.get_text().decode(_encoding) % _('Facebook'))
         self.append_page(page1)
 
         self.set_page_title(page1, _('Intro'))
@@ -60,7 +64,7 @@
         # page 3
         page3 = gui.get_object('box2')
         confirm_label = gui.get_object('label6')
-        confirm_label.set_text(confirm_label.get_text().decode('utf-8') 
+        confirm_label.set_text(confirm_label.get_text().decode(_encoding) 
                                % _('Facebook'))
         self.append_page(page3)
 
